import H5Api from "./H5Api";
import IOSApi from "./IOSApi";
import AndroidApi from './AndroidApi';
import WechatApi from './WechatApi';

import {Tools} from 'weaver-mobile';

const platform = 'ios';// ios , android , h5 , wechat
let adapter = null;
if (platform == 'android') {
    adapter = new AndroidApi();
} else if (platform == 'ios') {
    adapter = new IOSApi();
} else if (platform == 'wechat') {
    adapter = new WechatApi();
} else {
    adapter = new H5Api();
}
window.wfAdapter = adapter;
module.exports = adapter;